package com.suep.system.service.impl;

import com.suep.system.domain.Menu;
import com.suep.system.mapper.MenuMapper;
import com.suep.system.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements IMenuService {
    @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<Menu> selectMenuByRoleId(Long roleId){
        return menuMapper.selectMenuByRoleId(roleId);
    }

    @Override
    public Integer insertMenu(Menu menu) {
        return 1;
    };
}
